/*
 * @Author: deng gino
 * @Date: 2024-12-31 15:34:32
 * @LastEditors: deng gino
 * @LastEditTime: 2024-12-31 15:43:44
 * @Description: 提供给微应用调用的API
 */
const { 
  contextBridge, 
  ipcRenderer
} = require("electron");

contextBridge.exposeInMainWorld('app', {
  sendNotify: (opt) => {
    ipcRenderer.send('notify', opt)
  }
})